package platform.server.business.product;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Title: ProductController
 * @ProjectName com-bigwavn-group
 * @Description: 商品管理
 * @author: wangweitao 1749343503@qq.com
 * @date: 2019/5/29 14:36
 * @version: V1.0.0
 */
@Controller
@RequestMapping("/product/product")
public class ProductController {

    /*@Autowired
    private IProductService productService;*/

    @GetMapping()
    @RequiresPermissions("product:product:product")
    String dict() {
        return "product/product/product";
    }

    /*@ResponseBody
    @GetMapping("/list")
    @RequiresPermissions("product:product:list")
    public PageUtils list(@RequestParam Map<String, Object> params) {
        // 查询列表数据
        Query query = new Query(params);
        String trace = "465465465";
        InsideRequestMessage<ProductParam> req = new InsideRequestMessage<ProductParam>();
        ProductParam productParam = new ProductParam();
        productParam.setId("4546");
        req.setReqBody(productParam);
        InsideResponseMessage<List<ProductPojo>> productList = productService.getProductList(trace,req);
        InsideResponseMessage<ProductPojo> total = productService.getProductCount(trace,req);
        List<ProductPojo> productPojos = productList.getRspBody();
        ProductPojo totals = total.getRspBody();
        PageUtils pageUtils = new PageUtils(productPojos, Integer.parseInt(totals.getId()));
        return pageUtils;
    }*/
}
